<template>
  <div>
    <el-descriptions title="退货信息"  :column="2">
      退货订单号
      <el-descriptions-item label=" 退货订单号">
        {{refund.returnNumber}}
      </el-descriptions-item>
      <el-descriptions-item label="退款金额(元)">
        {{refund.money}}
      </el-descriptions-item>
      <el-descriptions-item label="退款原因">
        {{refund.returnCase.name}}
      </el-descriptions-item>
      <el-descriptions-item  label="补充描述"> {{refund.remark}}</el-descriptions-item>
    </el-descriptions>
  </div>
</template>

<script>
  export default {
    name: "ReturnDetail",
    data() {
      return {
        refund:{
          returnNumber:"",
          money:"",
          returnCase:{
            name:""
          }
        },
      }
    },
    methods: {
      getData(id) {
        this.refund={};
        this.$axios.get("refund.action/"+id)
        .then(res=>{
          this.refund=res.data;
        })
        .catch(err=>{this.$message.error(err)})
      },
      cancel(){
        this.$parent.$parent.dialogVisible=false;
      }
    }
  }
</script>

<style scoped>
  .myimg{
    width: 100px;
    height: 100px;
    margin-right: 10px;
  }
</style>
